﻿namespace Konata.Core.Packets.Tlv.Model;

internal class T305Body : TlvBody
{
    public readonly byte[] _d2Key;

    public T305Body(byte[] d2tKey, object nil)
        : base()
    {
        _d2Key = d2tKey;

        PutBytes(_d2Key);
    }

    public T305Body(byte[] data)
        : base(data)
    {
        TakeBytes(out _d2Key, Prefix.None);
    }
}
